package br.com.lambdacore.site.infrastructure.dao;

import br.com.lambdacore.domain.model.EntityModel;
import br.com.lambdacore.persistence.dao.DAO;
import br.com.lambdacore.persistence.dao.jpa.JpaDAOImpl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

public abstract class LambdaCoreJpaDAOImpl<T extends EntityModel> extends JpaDAOImpl<T> {

	@PersistenceContext
	private EntityManager entityManager;

	@Override
	protected EntityManager getEntityManager() {
		return this.entityManager;
	}
}
